import Joi from 'joi';

export const AuthorSchema = Joi.object({
  name: Joi.string().min(3).required()
});

export const BookSchema = Joi.object({
  title: Joi.string().min(3).required(),
  isbn: Joi.string().min(3).required(),
  authors: Joi.array(),
  published: Joi.date().required(),
  pageCount: Joi.number()
});
